<?php
/**
 * Created by PhpStorm.
 * User: gzq
 * Date: 13-12-13
 * Time: 下午8:54
 */
require_once("DB/DB.php");
require_once("DB/User.php");
$req=@$_REQUEST['request'] ? $_REQUEST['request'] : '';
$data=json_decode($req);
$m = $data->m;
$a = $data->a;
$d = $data->d;

$op=array();
switch ($m) {
    case "user":
        $user=new User();
        $op=$user->Action($a,$d);
        break;
    default:
        break;
}
exit(json_encode($op));